<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" CodeFile="state-tax-edit.aspx.cs" Inherits="admin_state_tax_edit" Title="Untitled Page" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="cntMiddleContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="left" height="30" bgcolor="#f6f6f6" class="plnk" style="padding: 0 10px;">
                <a href="<%= AutoGear.BLL.CustomSiteMap.AdminHome %>">Dashboard</a> &raquo; <a href="<%= AutoGear.BLL.CustomSiteMap.StateTaxList %>">
                    State Tax List</a> &raquo; <a href="<%= AutoGear.BLL.CustomSiteMap.StateTaxEdit %>">Edit State Tax</a></td>
        </tr>
        <tr>
            <td height="10">
            </td>
        </tr>
        <tr>
            <td align="left" style="background: url(<%=rootPath %>images/admin/page-title-back.jpg);
                background-repeat: repeat-x;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="10" align="left">
                            <img src="<%=rootPath %>images/admin/page-title-left.jpg" width="5" height="30" alt=" " /></td>
                        <td align="left" class="rate">
                            <strong>Edit State Tax</strong></td>
                        <td width="10" align="right">
                            <img src="<%=rootPath %>images/admin/page-title-right.jpg" width="5" height="30"
                                alt=" " /></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="padding: 10px;">
                <table width="100%" cellpadding="5" cellspacing="0" style="border: 1px solid #cacaca;">
                    <tbody>
                        <tr>
                            <td align="left" style="background-color: #f6f6f6;width:200px;">
                            </td>
                            <td align="right" style="background-color: #f6f6f6">
                                <asp:ImageButton ID="imgSaveUp" runat="server" ImageUrl="~/images/admin/btn-save.jpg"
                                    AlternateText=" " Width="49px" Height="25px" OnClick="Update_Click" /></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
                                    DisplayMode="BulletList" ShowMessageBox="true"  HeaderText="Please correct the following:"
                                    CssClass="adminValidator" Width="250px"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <table cellpadding="7" style="border:solid 1px black; padding:20px 80px; margin:20px;">
                                    <tr>
                                        <td align="left">
                                            State Name</td>
                                        <td align="left">
                                            <b><asp:Label ID="lblStateName" runat="server" ></asp:Label></b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            Tax(%)</td>
                                        <td align="left">
                                            <asp:TextBox ID="tbxTax" runat="server" CssClass="txtbox" Width="52px"></asp:TextBox>
                                            <span class="red">*</span><asp:RequiredFieldValidator ID="rfvTax"
                                                runat="server" ControlToValidate="tbxTax" ErrorMessage="Tax is required"
                                                Display="dynamic" SetFocusOnError="true" EnableClientScript="true" Width="1px">
                                                <wuc:AdminValidator ID="AdminValidator1" runat="server" />
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" ID="revTax" ControlToValidate="tbxTax"
                                                EnableClientScript="true" ErrorMessage="Incorrect Tax Format" SetFocusOnError="true"
                                                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                                                <wuc:AdminValidator ID="Validator28" runat="server" />                                    
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            Active</td>
                                        <td align="left">
                                            <asp:CheckBox ID="cbxIsActive" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="smallred" style="background-color: #f6f6f6">
                            </td>
                            <td align="right" style="background-color: #f6f6f6">
                                <asp:ImageButton ID="imgSaveBottom" runat="server" ImageUrl="~/images/admin/btn-save.jpg"
                                    AlternateText=" " Width="49px" Height="25px" OnClick="Update_Click" /></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
